﻿using System.Web.Mvc;
using CMSMVC4.Filters;

namespace CMSMVC4.Areas.Admin.Controllers
{
    // Camnv
    [Authorize(Roles = "Admin,Equipment")]
    public class EquipmentController : Controller
    {
        private CMSMVC4Entities _db = new CMSMVC4Entities();
        //
        // GET: /Admin/Equipment/

        //public ActionResult GetEquipments()
        //{
        //    var data = db.Pages
        //}


        public ActionResult AddEquipment()
        {
            ViewBag.M = new CommandSql().GetParrentByMenu("/Admin/Equipment/AddEquipment").Rows[0]["Parrent"];
            return View();
        }
    }
}
